package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.DmcCsunCameraPictureMapper;
import com.csun.cmny.provider.model.domain.DmcCsunCameraPicture;
import com.csun.cmny.provider.service.DmcCsunCameraPictureService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020-01-06 17:14
 * @Description:
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DmcCsunCameraPictureServiceImpl extends BaseService<DmcCsunCameraPicture> implements DmcCsunCameraPictureService {

    @Resource
    private DmcCsunCameraPictureMapper dmcCsunCameraPictureMapper;

    /**
     * select by device no
     *
     * @param deviceNo the device no
     *
     * @return the dmc csun camera picture
     */
    @Override
    public DmcCsunCameraPicture selectByDeviceNo(String deviceNo) {

        return dmcCsunCameraPictureMapper.selectByDeviceNo(deviceNo);
    }
}
